﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="plasschooldialog.aspx.cs" Inherits="RegisterationSystem.Space_Student.plasschooldialog" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <script src="../Framework/jquery.min.js" type="text/javascript"></script>
    <script>
        var n = "";
    window.onbeforeunload = onbeforeunload_handler;
    window.onunload = onunload_handler;
    function onbeforeunload_handler() {
        if (n == "") {
            window.alert("您还没选择具体学校！所以此操作无效");
            parent.window.returnValue = "-1n";
            return;
        }
    }
    function onunload_handler() {
    }
        //进城务工选择学校
        function selaredid(sid) {
            //学校编号
            $("#<%= hidstuid.ClientID %>").val(sid);
            var wname = $("#<%= hidstuid.ClientID %>").val() + "," + $("#<%= hidAdjustment.ClientID %>").val();
            parent.window.returnValue = wname;  //父窗口就是上一个页面
            n = wname;
            window.close();
        }
        //是否接受调剂
        function adjustmentonchange() {
            //是否接受调剂
            var adjustment = $("#s_tiaoji option:selected").val();
            $("#<%= hidAdjustment.ClientID %>").val(adjustment);
        }
    </script>
    <style type="text/css">
        .auto-style1 {
            width: 100%;
        }
        .auto-style2 {
            height: 20px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
       <!--所属学校-->
    <asp:HiddenField ID="hidstuid" runat="server" Value="0" />
          <!--是否接受调剂-->
    <asp:HiddenField ID="hidAdjustment" runat="server" Value="0" />
     <div id="plastudentinfo" style="padding-top:5px; height:90px;">
         <table align="center" style="width: 50%; margin-top:15px">
             <tr>
                 <td class="auto-style2" colspan="3">是否服从调剂&nbsp;<select id="s_tiaoji" runat="server" onchange="adjustmentonchange()"><option value="服从">服从</option><option value="不服从">不服从</option></select></td>
             </tr>
             <tr>
                 <td><a href="javascript:void(0)" onclick="selaredid(1)">汉南小学</a></td>
                 <td><a href="javascript:void(0)" onclick="selaredid(2)">银莲湖小学</a></td>
                 <td><a href="javascript:void(0)" onclick="selaredid(3)">水洪小学</a></td>
             </tr>
             <tr>
                 <td><a href="javascript:void(0)" onclick="selaredid(4)">邓南中心小学</a></td>
                 <td><a href="javascript:void(0)" onclick="selaredid(5)">江下小学</a></td>
                 <td><a href="javascript:void(0)" onclick="selaredid(6)">大嘴小学</a></td>
             </tr>
             <tr>
                 <td><a href="javascript:void(0)" onclick="selaredid(7)">乌金学校</a></td>
                 <td><a href="javascript:void(0)" onclick="selaredid(8)">东城院中心小学</a></td>
                 <td><a href="javascript:void(0)" onclick="selaredid(11)">子林小学</a></td>
             </tr>
         </table>



    </div>
    </form>
</body>
</html>
